package PL.prac2;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Tokens {
	private List<String> T;
	
	public Tokens (String entrada) {
		T = new ArrayList<String>();
		Scanner reader = new Scanner (entrada);
		reader.useDelimiter("\n");
		while (reader.hasNext())
		T.add(reader.next());
	}
	
	public boolean EnToken (String palabra) {
		return(T.contains(palabra));
	}
}


